package com.zrrd.jt_admin.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 
 * </p>
 *
 * @author wanjl
 * @since 2024-06-29
 */
@Data
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value="Goods对象", description="")
public class Goods implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    protected Integer id;

    @ApiModelProperty(value = "商品名称")
    protected String title;

    @ApiModelProperty(value = "分类id")
    protected Integer categoryId;

    @ApiModelProperty(value = "商品封面图")
    protected String cover;

    @ApiModelProperty(value = "平均评分")
    protected Float rating;

    @ApiModelProperty(value = "总销量")
    protected Integer saleCount;

    @ApiModelProperty(value = "评论数")
    protected Integer reviewCount;

    @ApiModelProperty(value = "最低sku价格")
    protected BigDecimal minPrice;

    protected BigDecimal minOprice;

    @ApiModelProperty(value = "商品描述")
    protected String description;

    @ApiModelProperty(value = "单位")
    protected String unit;

    @ApiModelProperty(value = "库存")
    protected Integer stock;

    @ApiModelProperty(value = "库存预警")
    protected Integer minStock;

    @ApiModelProperty(value = "是否审核 0审核中 1通过 2拒绝")
    protected Byte ischeck;

    @ApiModelProperty(value = "状态 0仓库1上架")
    protected Byte status;

    @ApiModelProperty(value = "库存显示 0隐藏 1显示")
    protected Byte stockDisplay;

    @ApiModelProperty(value = "运费模板id")
    protected Integer expressId;

    @ApiModelProperty(value = "sku类型：0单一，1多规格")
    protected Byte skuType;

    @ApiModelProperty(value = "单一规格值")
    protected String skuValue;

    @ApiModelProperty(value = "商品详情")
    protected String content;

    @ApiModelProperty(value = "折扣设置")
    protected Float discount;

    protected Integer createTime;

    protected Integer updateTime;

    protected Integer deleteTime;

    @ApiModelProperty(value = "排序")
    protected Integer orderId;

    @ApiModelProperty(value = "是否删除(移入回收站)，1为未删除，0为已删除")
    protected Integer del;


}
